package zysx;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 18128
 * Date: 2023-09-24
 * Time: 16:03
 */
public class stulist {
    private xuesheng[] xxx;
    private int num;
    public stulist()
    {
        xxx=new xuesheng[3];
        xxx[0]=new xuesheng("hjx",001,20);
        xxx[1]=new xuesheng("hjw",002,30);
        xxx[2]=new xuesheng("hhh",003,54);
        num=3;
    }

    public xuesheng[] getXxx() {
        return xxx;
    }

    public void setXxx(xuesheng[] xxx) {
        this.xxx = xxx;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
    public void sethjx(int i)
    {
       int t=xxx[i].getAge();
        xxx[i].setAge(t+1);
    }
    public xuesheng sb(int i)
    {
        return xxx[i];
    }
}
























